<template>
    <div>
        <el-table :data="tableData" stripe border>
            
            <el-table-column prop="name" label="姓名"></el-table-column>
            
            <el-table-column prop="age" label="年龄"></el-table-column>
            
        </el-table>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                tableData: JSON.parse('[{"age":20,"name":"张三"},{"age":25,"name":"李四"}]')
            };
        }
    };
</script>

<style scoped>
    /* 可添加自定义样式 */
</style>